.box {
  width: 500px;
  margin: 0 auto;
  overflow: hidden;
}
.box > div {
  float: left;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-bottom: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
}
.box > div img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.box > div .text {
  position: absolute;
  color: #ffffff;
  bottom: 0;
  left: 0;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.5);
  width: 100%;
  transform: translateY(100%);
  transition: all 0.3s;
}
.box > div:hover .text {
  transform: translateY(0%);
}
